package designPattern.singleton;

/**
 * Created by cdxuhongya on 2017/1/6.
 */
public class Singleton_sync_A {
    private static Singleton_sync_A instance = null;

    private Singleton_sync_A(){};

    public static synchronized Singleton_sync_A getInstance(){
        if(instance == null){
            instance = new Singleton_sync_A();
        }
        return instance;
    }
}
